﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/master.Master" AutoEventWireup="true" CodeBehind="CheckDOHistory.aspx.cs" Inherits="Stationery_Inventory.Presentation.DeliveryOrder.CheckDOHistory" EnableEventValidation = "false"  %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">


    <div class = "row">
    
        <h3 class="text-center">
                <strong>LOGIC University<br />
                Check Delivery Order History &amp; Delivery Items</strong></h3>
       </div>

    <asp:RequiredFieldValidator ID="valreqDateFrom" runat="server" 
        ErrorMessage="Date From is required" ControlToValidate="tbDateFrom" 
        ForeColor="#FF6600"></asp:RequiredFieldValidator>

       <br />

       <asp:RequiredFieldValidator ID="valreqDateTo" runat="server" 
        ErrorMessage="Date To is required" ControlToValidate="tbDateTo" 
        ForeColor="#FF6600"></asp:RequiredFieldValidator>

        <div class ="row">
            &nbsp;<asp:Label ID="lblDateFrom" runat="server" CssClass="col-sm-3 text-info" Text="Date From"></asp:Label>
            <asp:TextBox ID="tbDateFrom" CssClass="col-sm-5 text-info" runat="server">From When</asp:TextBox>
        </div>
        <br />
        
        <div class ="row">
            <asp:Label ID="lblDateTo" runat="server" CssClass="col-sm-3 text-info" Text="Date To"></asp:Label>
            <asp:TextBox ID="tbDateTo" runat="server" CssClass="col-sm-5 text-info">To When</asp:TextBox>
           </div>
           <br />
        
         <div class ="row">
            <asp:Button ID="btnCheckDeliveryOrders" runat="server" CssClass="btn btn-default" 
                onclick="btnCheckDeliveryOrders_Click" Text="Check Delivery Orders" />
        
    </div>
    <br />
    <br />
  
      <div class ="row">
        <asp:GridView ID="gvDeliveryOrdersHistory"  runat="server"    CssClass="col-sm-12 table table-striped table-bordered table-hover" >
        </asp:GridView>
       </div>

        <asp:RegularExpressionValidator ID="valregDateFrom" runat="server" CssClass="col-sm-12 text-info"
            ControlToValidate="tbDateFrom" 
            ErrorMessage="Enter a DD/MM/YYYY for Date From:" ForeColor="Red" 
            
        
        ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d" 
        SetFocusOnError="True"></asp:RegularExpressionValidator>
            <br />
    
        <asp:RegularExpressionValidator ID="valregDateTo" runat="server" CssClass="col-sm-12 text-info"
            ControlToValidate="tbDateTo" 
            ErrorMessage="Enter a DD/MM/YYYY for Date To:" ForeColor="Red" 
            
        
        ValidationExpression="(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d" 
        SetFocusOnError="True"></asp:RegularExpressionValidator>

   

   <div class = "row">
        <asp:Label ID="lblCheckDeliveryRecordItems" runat="server" CssClass="col-sm-8 text-info" 
            Text="Check Delivery Order Record Items" Font-Size="Large"></asp:Label>
   </div>
    <asp:RequiredFieldValidator ID="valReqDeliveryID" runat="server" 
        ErrorMessage="DeliveryID is required" ControlToValidate="tbDeliveryID" 
        ForeColor="#FF6600"></asp:RequiredFieldValidator>
   <br />
    <asp:RegularExpressionValidator ID="valregDeliveryID" runat="server" 
        ErrorMessage="Enter positive integers only for Delivery ID" 
        ControlToValidate="tbDeliveryID" ForeColor="#FF6600" 
        ValidationExpression="[0-9]+"></asp:RegularExpressionValidator>
   <br />

   <div class = "row">
      <asp:Label ID="lblDeliveryID" runat="server" CssClass="col-sm-3 text-info"  
           Text="Enter Delivery ID"></asp:Label>
        <asp:TextBox ID="tbDeliveryID" runat="server" CssClass="col-sm-4 text-info" >7000</asp:TextBox>
    </div>
    <br />
    
   <div class = "row">

        <asp:Button ID="btnCheckDeliveryItems" runat="server" CssClass="btn btn-primary"
            onclick="btnCheckDeliveryItems_Click" Text="Check Delivery Record Items" />
     </div>
     <br />

     <div class = "row">
     <asp:Label ID="lblDeliveryOrderID" runat="server" Text="Delivery Order ID :"></asp:Label>
         <asp:Label ID="lblDeliveryOrderIDUI" runat="server">Shows Delivery Order ID searched</asp:Label>
     </div>
     <br />

     <div class ="row">
         <asp:Label ID="lblPurchaseID" runat="server" Text="Purchase ID:"></asp:Label>
     
         <asp:Label ID="lblPurchaseIDUI" runat="server" 
             Text="Shows Purchase ID searched"></asp:Label>
     
     </div>
     <br />

     <div class ="row">
         <asp:Label ID="lblSupplierID" runat="server" Text="Supplier ID:"></asp:Label>
     
         <asp:Label ID="lblSupplierIDUI" runat="server" 
             Text="Shows Supplier ID searched"></asp:Label>
     
     </div>
     <br />

       <div class ="row">
         <asp:Label ID="lblOrderedByID" runat="server" Text="Ordered By Employee ID:"></asp:Label>
     
         <asp:Label ID="lblOrderedbyUI" runat="server" Text="Shows Employee who ordered"></asp:Label>
     
     </div>
     <br />

      <div class ="row">
         <asp:Label ID="lblDateOrdered" runat="server" Text="Date Ordered:"></asp:Label>
     
         <asp:Label ID="lblDateOrderedUI" runat="server" Text="Date of Purchase Order"></asp:Label>
     
     </div>
     <br />

      <div class ="row">
         <asp:Label ID="lblDateRequired" runat="server" Text="Date Required:"></asp:Label>
     
         <asp:Label ID="lblDateRequiredUI" runat="server" 
              Text="Date Stationery Items are required by Store"></asp:Label>
     
     </div>
     <br />
      <div class ="row">
         <asp:Label ID="lblRemarks" runat="server" Text="Remarks for Delivery Order:"></asp:Label>
     
          <asp:TextBox ID="tbRemarks" runat="server" TextMode="MultiLine">Remarks for The Delivery Order</asp:TextBox>
     
     </div>
     <br />

      


   <div class = "row" style="overflow:auto">
        <asp:GridView ID="gvDeliveryRecordItems" runat="server"  CssClass="col-sm-12 table table-striped table-bordered table-hover" >
        </asp:GridView>
    </div>

   
   <br />
   <br />

        </asp:Content>

  
